#ifndef CPUSENSOR_H
#define CPUSENSOR_H

#include <QObject>
#include <QTimer>
#include "QSensors.h"



class cpuSensor : public QObject, public QSensors
{
    Q_OBJECT
public:
    explicit cpuSensor(QObject *parent = 0);
    virtual int getCurrentTemp();
    virtual bool isUpdated();
    virtual void buildSVG();

private:
    int currentTemp ;
    QTimer *cpuTimer;
    int readTemp();
    int cpuInterval;
    bool updated;




signals:

public slots:
    void update();

};




#endif // CPUSENSOR_H
